#version: 1.0.1

FROM centos-6.8-base-custom:latest
MAINTAINER   wandapeng "dapeng.wan@pintuibao.cn"
###########配置服务自启动##########
COPY run.sh  /deploy/scripts/
RUN chmod 755 /deploy/scripts/*.sh
ENTRYPOINT ["/deploy/scripts/run.sh"]
###########发布相关端口##########
#EXPOSE 22
#EXPOSE 8080
###########安装##########
RUN mkdir -p /opt/zeus-sms/logs/
COPY config/ /opt/zeus-sms/config/
COPY bin/ /opt/zeus-sms/bin/
RUN chmod 755 /opt/zeus-sms/bin/*
WORKDIR /opt/zeus-sms/
###############加载经常变化的数据文件进入镜像文件
COPY libs/ /opt/zeus-sms/libs/
COPY zeus-sms.jar /opt/zeus-sms/
###########创建数据卷目录##########
VOLUME    /opt/ /var/log/